﻿using Mono.Cecil.Cil;

public class ILInstruction : IInstruction
{
    public int Index { get; set; }
    public Code OpCode { get; set; }
    public object? Operand { get; set; }
    public ILInstruction(int index, Code opcode, object? operand)
    {
        Index = index;
        OpCode = opcode;
        Operand = operand;
    }
    public ILInstruction() { }
    public override string ToString()
    {
        return $"IL_{Index:X4} {OpCode} {Operand}";
    }
}

